<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <title>巡检管理</title>
  <!--jquery-->
  <script src="js/authority/jquery.min.js"></script>
  <link rel="stylesheet" href="css/bootstrap.min.css">
  <script src="js/authority/popper.min.js"></script>
  <script src="js/authority/bootstrap.min.js"></script>
  <link rel="stylesheet" href="css/all.css">
  <script src="js/authority/html5shiv.min.js"></script>
  <script src="js/authority/respond.min.js"></script>
  <script src="js/authority/all.min.js"></script>
  <link href="css/bootstrap-table.min.css" rel="stylesheet">
  <script src="js/authority/bootstrap-table.min.js"></script>
  <script src="js/authority/bootstrap-table-locale-all.min.js"></script>
  <script src="js/authority/bootstrap-table-export.min.js"></script>
  <!--在客户端保存生成的导出文件-->
  <!--    <script src="js/authority/FileSaver.min.js"></script>-->
  <!--以XLSX（Excel 2007+ XML格式）格式导出表（SheetJS）-->
  <script src="js/authority/xlsx.core.min.js"></script>
  <!--以PNG格式导出表格-->
  <!--对于IE支持包括 html2canvas 之前的 es6-promise-->
  <script src="js/authority/es6-promise.auto.min.js"></script>
  <script src="js/authority/html2canvas.min.js"></script>
  <!--将表导出为PDF文件-->
  <script src="js/authority/jspdf.min.js"></script>
  <script src="js/authority/jspdf.plugin.autotable.js"></script>
  <!--无论期望的格式如何，最后都包含 tableexport.jquery.plugin（不是tableexport）-->
  <script src="js/authority/tableExport.min.js"></script>
  <script src="js/authority/bootstrap-table-zh-CN.min.js"></script>
  <style>
    td {
      font-size: 15px;
    }
  </style>
</head>
<body>
<nav class="navbar navbar-default">
  <div class="container-fluid">
    <div class="navbar-header">
      <a class="navbar-brand" href="#">
        <img alt="Brand" src="/Wlogo.png" style="height: 20px">
      </a>
      <a class="navbar-brand" href="Main.html">巡航机器人监控系统</a>
    </div>
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-5">
      <p class="navbar-text navbar-right" id="datetime">
        <script>
          setInterval("document.getElementById('datetime').innerHTML=new Date().toLocaleString();", 1000);
        </script>
      </p>
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#">异常反馈</a></li>
        <li><a href="#">刷新</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
             aria-expanded="true">欢迎您，肖亮！<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">权限查看</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">切换账户</a></li>
            <li><a href="#">退出登录</a></li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</nav>
<div class="container-fluid">
  <div class="row">
    <div class="col-md-2">
      <div class="list-group">
        <ol class="breadcrumb">
          <li><a href="welcome.html">首页</a></li>
          <li class="active">巡检管理</li>
        </ol>
        <a href="InspectionManagement.html" class="list-group-item active">巡检管理</a>
      </div>
      <div class="list-group">
        <a href="#" class="list-group-item active">
          <h4 class="list-group-item-heading">巡航机器人监控系统</h4>
          <p class="list-group-item-text">2021 © 中国中煤能源集团</p>
        </a>
      </div>
    </div>
    <div class="col-md-10">
      <div class="jumbotron">
        <h2 class="text-center">自动巡检管理列表</h2>
      </div>
      <div class="panel panel-default">
        <div class="panel-body">
          <form>
            <div class="row">
              <div class="col-xs-4">
                方案编号：<input type="text" id="txt_search_inspectionNum" class="form-control" placeholder="">
              </div>
              <div class="col-xs-4">
                方案名称：<input type="text" id="txt_search_inspectionName" class="form-control" placeholder="">
              </div>
              <div class="col-xs-4">
                巡检速度：<input type="text" id="txt_search_inspectionSpd" class="form-control" placeholder="">
              </div>
            </div>
            <div class="row">
              <div class="col-xs-4">
                开始时间：<input id="txt_search_inspectionBeginTime" type="datetime-local" class="form-control" placeholder="">
              </div>
              <div class="col-xs-4">
                周期：<input type="text" id="txt_search_inspectionCycle" class="form-control" placeholder="">
              </div>
              <div class="col-xs-4">
                是否启用：<select id="txt_search_isInspection" class="form-control">
                <option value="">请选择
                <option value="1">启用
                <option value="0">未启用
              </select>
              </div>
              <div class="col-xs-12 text-right">
                <button type="button" class="btn btn-warning" id="serachButton" style="margin-top: 15px;width: 150px">查询
                </button>
              </div>
            </div>
          </form>
        </div>

      </div>
      <div class="panel panel-default">
        <div class="panel-body">
          <button id="btn_add" type="button" class="btn btn-default" data-toggle="modal"
                  data-target="#exampleModalAdd">
            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
          </button>
          <button id="btn_del" type="button" class="btn btn-danger">
            <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>删除
          </button>
          <table id="table-InspectionManagement"></table>
        </div>
      </div>

    </div>
  </div>
</div>
<!--新增模态框显示-->
<div class="modal fade" id="exampleModalAdd" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <form id="addForm">
          <div class="form-group">
            <em style="color: red;">*</em>
            <label for="inspectionName" class="control-label">巡检方案名称：</label>
            <input type="text" class="form-control" id="inspectionName" name="inspectionName" >
          </div>
          <div class="form-group">
            <em style="color: red;">*</em>
            <label for="inspectionSpd" class="control-label">巡检速度：</label>
            <input type="text" class="form-control" required="required" maxlength="8" id="inspectionSpd"
                   name="inspectionSpd">
          </div>
          <div class="form-group">
            <em style="color: red;">*</em>
            <label for="inspectionBeginTime" class="control-label">巡检开始时间：</label>
            <input type="datetime-local" class="form-control" placeholder=""
                   id="inspectionBeginTime" name="inspectionBeginTime">
          </div>
          <div class="form-group">
            <em style="color: red;">*</em>
            <!--                    新建-->
            <label for="inspectionCycle" class="control-label">巡检周期：</label>
            <input type="text" class="form-control" required="required"
                   id="inspectionCycle" name="inspectionCycle">
          </div>
          <div class="form-group">
            <em style="color: red;">*</em>
            <!--                    新建-->
            <label for="isInspection" class="control-label">是否启用：</label>
            <select class="form-control" id="isInspection" name="isInspection">
              <option value="">请选择
              <option value="1">启用
              <option value="0">停止
            </select>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="button" class="btn btn-primary" id="addNewButton">确定</button>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
<!--修改模态框显示-->
<div class="modal fade" id="exampleModalupdate" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title" id="exampleModalLabel">更新巡检方案</h4>
      </div>
      <div class="modal-body">
        <form id="formInspec">
          <div class="form-group">
            <em style="color: red;">*</em>
            <label for="inspectionNum-update" class="control-label">巡检方案编号：</label>
            <input type="text" class="form-control" id="inspectionNum-update" disabled>
          </div>
          <div class="form-group">
            <em style="color: red;">*</em>
            <label for="inspectionName-update" class="control-label">巡检方案名称：</label>
            <input type="text" class="form-control" id="inspectionName-update" required="required" maxlength="5">
          </div>
          <div class="form-group">
            <em style="color: red;">*</em>
            <label for="inspectionSpd-update" class="control-label">巡检速度：</label>
            <input type="text" class="form-control" id="inspectionSpd-update">
          </div>
          <div class="form-group">
            <em style="color: red;">*</em>
            <label for="inspectionBeginTime-update" class="control-label">巡检开始时间：</label>
            <input type="text" class="form-control" id="inspectionBeginTime-update">
          </div>
          <div class="form-group">
            <em style="color: red;">*</em>
            <label for="inspectionCycle-update" class="control-label">巡检周期：</label>
            <input type="text" class="form-control" id="inspectionCycle-update">
          </div>
          <div class="form-group">
            <em style="color: red;">*</em>
            <label for="isInspection-update" class="control-label">是否启用：</label>
            <select class="form-control" id="isInspection-update" name="roleId">
              <option value="1">启用
              <option value="0">停止
            </select>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="button" class="btn btn-primary" id="updateInspec">确定</button>
          </div>
        </form>
      </div>

    </div>
  </div>
</div>
<script src="js/inspectionmanagement-table.js"></script>
<script>

</script>

</body>
</html>